package com.example.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: Yun
 * @Date: 2024/3/23
 */
@SpringBootApplication
@EnableDiscoveryClient // 用于向使用consul为注册中心注册服务
@EnableFeignClients // 启用Feign的客户端,定义服务+绑定接口
public class MainOpenFeign80 {
    public static void main(String[] args) {
        SpringApplication.run(MainOpenFeign80.class, args);
    }
}